package com.leenmvc.core.annotation.validator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 正则表达式匹配传入的值
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface PatternValid {

    String message() default "正则表达式验证不通过";

    String value() default ".*";

    Class<?>[] groups() default {};

}
